Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / Object Class Definitions


Font File

An object of class Font File is a file that contains font data.

PROPERTIES
A font file has all the properties defined for object class File on page 60: Creator Type, File Type, Locked, Product Version, Stationery, and Version.

Like any other file, a font file also has all the properties defined for object class Item on page 72: Bounds, Comment, Content Space, Container, Creation Date, Disk, Folder, Icon, ID, Information Window, Kind, Label Index, Modification Date, Name, Physical Size, Position, Selected, Size, and Window.

ELEMENT CLASSES
None

COMMANDS HANDLED
Clean Up, Copy, Count, Data Size, Delete, Duplicate, Exists, Get, Move, Open, Put Away, Reveal, Select, Sort, Update

DEFAULT VALUE CLASS RETURNED
A reference to a file or, if you use the plural form font files, a list
of references.

EXAMPLE
If you save this script as a script application, it opens font suitcases or any other containers you drop on its icon and opens the windows for any font files they contain.

on open x
   repeat with i in x
      tell application "Finder"         open i
         open font files in i
      end tell
   end repeat
end open

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996